<?php
require_once 'application/library/controller/gcLBasicAction.php';
require_once 'application/library/service/commService/gcProvService.php';
require_once 'application/modules/supplier/constant/supplier_constant_templatName.php';
require_once 'application/modules/supplier/services/supplier_services_supplierViewService.php';

/**
 * 供应商详细
 * supplierViewController
 * @author    Soochow University
 * @version   1.0
 * @exclude   作  成  日：2011/04/07
 */
class supplier_supplierViewController extends gcLBasicAction{

    /**
     * objService
     */
    private $objService;

    /**
     * indexAction
     */
    public function indexAction(){
        $this->initMenu("2");
        $this->boolUserTypeCheck("2");
        $this->pvSetPageInfo();

        $strSupplierNo = $this->getParam("SupplierNo");
        $this->objService=new supplier_services_supplierViewService();
        $arrSearchData = $this->objService->pbGetSupplierInfo($strSupplierNo);
        $objProv = new gcProvService();
        $arrSearchData["PROV_CODE"] = $objProv->getProvName($arrSearchData["PROV_CODE"]);
        $this->gcView->arrSearchData=$arrSearchData;
        $this->gcView->render(supplier_constant_templatName::SUPPLIER_VIEW);
    }

    /**
     * pvSetPageInfo
     */
    private function pvSetPageInfo(){
        $this->gcView->title                        = $this->getLabel("supplier_00001_Supplier").$this->getLabel("supplier_00002_Info").$this->getLabel("supplier_00003_Detail");
        $this->gcView->supplier_00003_Title         = $this->getLabel("supplier_00001_Supplier").$this->getLabel("supplier_00002_Info");
        $this->gcView->supplier_00003_Supplier      = $this->getLabel("supplier_00001_Supplier");
        $this->gcView->supplier_00003_Title2        = $this->getLabel("supplier_00001_Supplier").$this->getLabel("supplier_00002_Basic").$this->getLabel("supplier_00002_Info");
        $this->gcView->supplier_00003_SupplierName  = $this->getLabel("supplier_00001_SupplierName");
        $this->gcView->supplier_00003_SaleTp        = $this->getLabel("supplier_00001_SaleTp");
        $this->gcView->supplier_00003_Prov          = $this->getLabel("supplier_00001_Prov");
        $this->gcView->supplier_00003_Position      = $this->getLabel("supplier_00001_Position");
        $this->gcView->supplier_00003_ContractNo    = $this->getLabel("supplier_00001_ContractNo");
        $this->gcView->supplier_00003_Tel           = $this->getLabel("supplier_00001_Tel");
        $this->gcView->supplier_00003_Mobile        = $this->getLabel("supplier_00001_Mobile");
        $this->gcView->supplier_00003_Fax           = $this->getLabel("supplier_00001_Fax");
        $this->gcView->supplier_00003_Email         = $this->getLabel("supplier_00001_Email");
        $this->gcView->supplier_00003_Factory       = $this->getLabel("supplier_00001_Factory");
        $this->gcView->supplier_00003_Seller        = $this->getLabel("supplier_00001_Seller");
        $this->gcView->supplier_00003_Status        = $this->getLabel("supplier_00001_Status");
        $this->gcView->supplier_00003_Trust         = $this->getLabel("supplier_00001_Trust");
        $this->gcView->supplier_00003_NoTrust       = $this->getLabel("supplier_00001_NoTrust");
        $this->gcView->supplier_00003_Scale         = $this->getLabel("supplier_00001_Scale");
        $this->gcView->supplier_00003_More          = $this->getLabel("supplier_00001_More");
        $this->gcView->supplier_00003_Less          = $this->getLabel("supplier_00001_Less");
        $this->gcView->supplier_00003_People        = $this->getLabel("supplier_00001_People");
        $this->gcView->supplier_00003_Edit          = $this->getLabel("supplier_00001_Edit");
        $this->gcView->supplier_00003_Add           = $this->getLabel("supplier_00001_Add");
        $this->gcView->supplier_00003_City          = $this->getLabel("supplier_00002_City");
        $this->gcView->supplier_00003_Address       = $this->getLabel("supplier_00002_Address");
        $this->gcView->supplier_00003_Ali           = $this->getLabel("supplier_00002_Ali");
        $this->gcView->supplier_00003_Homepage      = $this->getLabel("supplier_00002_Homepage");
        $this->gcView->supplier_00003_Title3        = $this->getLabel("supplier_00001_Supplier").$this->getLabel("supplier_00002_PaymentKind").$this->getLabel("supplier_00002_Setting");
        $this->gcView->supplier_00003_PaymentKind   = $this->getLabel("supplier_00002_PaymentKind");
        $this->gcView->supplier_00003_PaymentMethod = $this->getLabel("supplier_00002_PaymentMethod");
        $this->gcView->supplier_00003_Account       = $this->getLabel("supplier_00002_Account");
        $this->gcView->supplier_00003_NotUse        = $this->getLabel("supplier_00002_NotUse");
        $this->gcView->supplier_00003_Bank          = $this->getLabel("supplier_00002_Bank");
        $this->gcView->supplier_00003_Epay          = $this->getLabel("supplier_00002_Epay");
        $this->gcView->supplier_00003_Cash          = $this->getLabel("supplier_00002_Cash");
        $this->gcView->supplier_00003_Close         = $this->getLabel("supplier_00003_Close");
        $this->gcView->supplier_00003_Edit          = $this->getLabel("supplier_00001_Edit");
    }
}
